<meta charset="utf-8">
<script type="text/javascript">
function saveInterface(){
				var unfollowCallback=$('#unfollowCallback').val();
				var followCallback=$('#followCallback').val();
				$.ajax({
					url:"{:U('Reply/updateSubOrNotReply')}",
					data:{unfollowCallback:unfollowCallback,followCallback:followCallback},
					type:"post",
					dataType:"json",
					success:function(data){
						if(data.success){
							alert('保存成功');
						}else{
							alert('保存失败');
						}
					}
				});
			}
</script>
<div class="page-header">
	<h1>
		订阅/取消订阅 二次开发接口
		<small>当用户关注或取消关注时，回调URL</small>
	</h1>
</div>
<div  class="settingArea">
	<div class="c-gA cLine" style="position: relative;margin-top: 30px">
		<div class="form-horizontal left-label" >
			<div class="form-group">
				<label class="control-label col-lg-2"> 订阅回调： </label>
				<div class="col-lg-6">
					<input type="text" class="form-control" 	placeholder="输入URL" name="followCallback"	value="{$profile.followCallback }"	 id='followCallback'>
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-lg-2"> 退订回调： </label>
				<div class="col-lg-6">
					<input type="text" class="form-control"	placeholder="输入URL" name="unfollowCallback" 	value="{$profile.unfollowCallback }"	id='unfollowCallback'>
				</div>
			</div>
			<div>*注：url中不能含有?号，不能带有参数</div>
		</div>
	</div>
	<div class="mask"></div>
	<div class="btnArea">
			<input type="button" class=" btn btn-success"	onclick="saveInterface()" value="保存" /> 
	</div>
</div>